.panel {
  background-color: $panel-bg;
  border: none;
  &.panel-noborder {
    border: none !important;
  }
}

.panel-heading {
  border-bottom: 1px solid rgba($color: $panel-inner-border, $alpha: 0.5);
  >.dropdown .dropdown-toggle {
    color: inherit;
  }

  .tools {
    >a,
    >span>a {
      color: $gray-light;
    }
  }
}
.panel-title {
  color: inherit;
  >a,
  >small,
  >.small,
  >small>a,
  >.small>a {
    color: inherit;
  }
}

.panel-footer {
  background-color: transparent;
  border-top: 1px solid $panel-inner-border;
}


.panel {
  >.panel-body+.table,
  >.panel-body+.table-responsive,
  >.table+.panel-body,
  >.table-responsive+.panel-body {
    border-top: 1px solid $table-border-color;
  }
}

.panel-group {

  .panel-heading {
    +.panel-collapse>.panel-body,
    +.panel-collapse>.list-group {
      border-top: 1px solid $panel-inner-border;
    }
  }

  .panel-footer {
    +.panel-collapse .panel-body {
      border-bottom: 1px solid $panel-inner-border;
    }
  }
}
.panel-default {
  @include panel-variant($panel-default-border, $panel-default-text, $panel-default-heading-bg, $panel-default-border);
}

.panel-primary {
  @include panel-variant($panel-primary-border, $panel-primary-text, $panel-primary-heading-bg, $panel-primary-border);
  @include head-style($panel-primary-text);
}

.panel-success {
  @include panel-variant($panel-success-border, $panel-success-text, $panel-success-heading-bg, $panel-success-border);
  @include head-style($panel-primary-text);
}

.panel-info {
  @include panel-variant($panel-info-border, $panel-info-text, $panel-info-heading-bg, $panel-info-border);
  @include head-style($panel-primary-text);
}

.panel-warning {
  @include panel-variant($panel-warning-border, $panel-warning-text, $panel-warning-heading-bg, $panel-warning-border);
  @include head-style($panel-primary-text);
}

.panel-danger {
  @include panel-variant($panel-danger-border, $panel-danger-text, $panel-danger-heading-bg, $panel-danger-border);
  @include head-style($panel-primary-text);
}